package com.business.service.impl;

import com.business.dao.BusinessDao;
import com.business.service.BusinessService;
import com.dong.web.annotation.Auto;
import com.dong.web.annotation.Service;
import com.dong.web.annotation.Transaction;

@Service
public class BusinessServiceImpl implements BusinessService {

	@Auto("BusinessDao")
	private BusinessDao dao;

	@Transaction
	public boolean add() {
		try {
			boolean a = dao.addA();
			boolean b = dao.addB();
			return a && b ? true : false;
		} catch (Exception e) {
			return false;
		}
	}

}
